﻿using System;
using DNT.RavenQA.Core.Extensions;
using DotNetOpenAuth.OpenId.RelyingParty;

namespace DNT.RavenQA.Web.Infrastructure.Extensions
{
    public static class AuthenticationResponseExtensions
    {
        public static Boolean IsSuccessful(this IAuthenticationResponse response)
        {
            return response.IsNotNull() && response.Status == AuthenticationStatus.Authenticated;
        }
    }
}